<?php
declare (strict_types = 1);

namespace app\admin\controller\doc;
use app\admin\controller\admin\Base;
use app\admin\model\admin\AdminRole;
use app\admin\model\doc\Curriculum;
use think\facade\Request;
use think\facade\View;

class Course extends Base
{
    public function index(){
        $datalist = Curriculum::select();

        //dd($vlaue);
        //变量赋值：
        View::assign('data',$datalist);
        return View::fetch();
    }	
    public function add(){

        return View::fetch('form',[ 'roles' => AdminRole::select()]);
    }	
}
